package com.shujia.wyh.day08.homework.test1;

/*
    定义一个抽象披萨类
 */
public abstract class Pizza {
    //名称
    private String name;
    //大小
    private int size;
    //价格
    private int price;

    public Pizza() {
    }

    public Pizza(String name, int size, int price) {
        this.name = name;
        this.size = size;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    //展示的抽象方法
    public abstract void show();

}
